package top.andnux.chain.entity;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.converter.PropertyConverter;

import java.util.Date;

@Entity(nameInDb = "tb_wallet")
public class WalletEntity {
    @Id(autoincrement = true)
    @Property(nameInDb = "id")
    private Long id;
    @Property(nameInDb = "user_id")
    private Long user_id;
    @Property(nameInDb = "state")
    private int state; //状态
    @Property(nameInDb = "name")
    private String name; //钱包名字
    @Property(nameInDb = "password")
    private String password;//账号密码
    @Property(nameInDb = "chain")
    private String chain;//链
    @Property(nameInDb = "address")
    private String address;//地址
    @Property(nameInDb = "keystore")
    private String keystore;//keystore
    @Property(nameInDb = "private_key")
    private String private_key;//private_key
    @Property(nameInDb = "public_key")
    private String public_key;//public_key
    @Property(nameInDb = "mnemonic")
    private String mnemonic;//助记词
    @Property(nameInDb = "create_time")
    private Date create_time; //创建时间
    @Property(nameInDb = "update_time")
    private Date update_time; //更新时间
    @Generated(hash = 890227035)
    public WalletEntity(Long id, Long user_id, int state, String name,
            String password, String chain, String address, String keystore,
            String private_key, String public_key, String mnemonic,
            Date create_time, Date update_time) {
        this.id = id;
        this.user_id = user_id;
        this.state = state;
        this.name = name;
        this.password = password;
        this.chain = chain;
        this.address = address;
        this.keystore = keystore;
        this.private_key = private_key;
        this.public_key = public_key;
        this.mnemonic = mnemonic;
        this.create_time = create_time;
        this.update_time = update_time;
    }
    @Generated(hash = 1363662176)
    public WalletEntity() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getUser_id() {
        return this.user_id;
    }
    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }
    public int getState() {
        return this.state;
    }
    public void setState(int state) {
        this.state = state;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getChain() {
        return this.chain;
    }
    public void setChain(String chain) {
        this.chain = chain;
    }
    public String getAddress() {
        return this.address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public String getKeystore() {
        return this.keystore;
    }
    public void setKeystore(String keystore) {
        this.keystore = keystore;
    }
    public String getPrivate_key() {
        return this.private_key;
    }
    public void setPrivate_key(String private_key) {
        this.private_key = private_key;
    }
    public String getPublic_key() {
        return this.public_key;
    }
    public void setPublic_key(String public_key) {
        this.public_key = public_key;
    }
    public String getMnemonic() {
        return this.mnemonic;
    }
    public void setMnemonic(String mnemonic) {
        this.mnemonic = mnemonic;
    }
    public Date getCreate_time() {
        return this.create_time;
    }
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }
    public Date getUpdate_time() {
        return this.update_time;
    }
    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}
